<template>
    <button class="cu-btn shadow" :class="[class_button, bg?bg:'bg-nddyny']" @tap="_tap" :disabled="disabled">
        {{title}}
    </button>
</template>

<script>
    export default {
        props: ['title', 'tap', 'uri', 'disabled', 'class_button', 'bg'],
        methods: {
            _tap() {
                if (this.tap) {
                    this.tap();
                }
                if (this.uri) {
                    this.$store.commit('userNavTo', this.uri);
                }
            }
        }
    }
</script>
